package com.cykj.pos.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cykj.pos.domain.BizRateData;
import com.cykj.pos.domain.BizRateDataList;
import com.cykj.pos.domain.BizTerminalRateList;
import com.cykj.pos.mapper.BizRateDataMapper;
import com.cykj.pos.mapper.BizTerminalRateListMapper;
import com.cykj.pos.service.IBizRateDataService;
import com.cykj.pos.service.IBizTerminalRateListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * POS机类型Service业务层处理
 *
 * @author weijianbo
 * @date 2021-05-18
 */
@Service
public class BizRateDataServiceImpl extends ServiceImpl<BizRateDataMapper, BizRateDataList> implements IBizRateDataService {
    @Resource
    BizRateDataMapper bizRateDataMapper;
    @Override
    public List<BizRateDataList> getBizrateList(String accountId) {

        List<BizRateDataList> list=bizRateDataMapper.getBizrateList(accountId);
        return list;
    }
    /**
     * 查询刷卡扫码费率
     *
     * @param id 刷卡扫码费率ID
     * @return 刷卡扫码费率
     */
    @Override
    public BizRateData selectBizRateDataById(Long id)
    {
        return bizRateDataMapper.selectBizRateDataById(id);
    }

    /**
     * 查询刷卡扫码费率列表
     *
     * @param bizRateData 刷卡扫码费率
     * @return 刷卡扫码费率
     */
    @Override
    public List<BizRateData> selectBizRateDataList(BizRateData bizRateData)
    {
        return bizRateDataMapper.selectBizRateDataList(bizRateData);
    }
    /**
     * 查询扫码费率列表
     *
     * @param bizRateData 刷卡扫码费率
     * @return 刷卡扫码费率
     */
    @Override
    public List<BizRateData> selectBizRateDataskm(String accountId)
    {
        return bizRateDataMapper.selectBizRateDataskm(accountId);
    }

    /**
     * 新增刷卡扫码费率
     *
     * @param bizRateData 刷卡扫码费率
     * @return 结果
     */
    @Override
    public int insertBizRateData(BizRateData bizRateData)
    {
        return bizRateDataMapper.insertBizRateData(bizRateData);
    }

    /**
     * 修改刷卡扫码费率
     *
     * @param bizRateData 刷卡扫码费率
     * @return 结果
     */
    @Override
    public int updateBizRateData(BizRateData bizRateData)
    {
        return bizRateDataMapper.updateBizRateData(bizRateData);
    }

    /**
     * 批量删除刷卡扫码费率
     *
     * @param ids 需要删除的刷卡扫码费率ID
     * @return 结果
     */
    @Override
    public int deleteBizRateDataByIds(Long[] ids)
    {
        return bizRateDataMapper.deleteBizRateDataByIds(ids);
    }

    /**
     * 删除刷卡扫码费率信息
     *
     * @param id 刷卡扫码费率ID
     * @return 结果
     */
    @Override
    public int deleteBizRateDataById(Long id)
    {
        return bizRateDataMapper.deleteBizRateDataById(id);
    }
    /*@Override
    public List<BizRateDataList> getBizrateT1List(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateT1List(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateT0List(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateT0List(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateRateList(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateRateList(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateQrT1List(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateQrT1List(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateQrT0List(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateQrT0List(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateQRList(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateQRList(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizrateIdrList(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizrateIdrList(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizratetalidList(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizratetalidList(accountId);
        return list;
    }
    @Override
    public List<BizRateDataList> getBizratecardList(String accountId) {
        List<BizRateDataList> list=bizRateDataMapper.getBizratecardList(accountId);
        return list;
    }*/
}
